#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int i = 0;
	int j = 0;
	int arr[6] = { 1,3,5,7,9 };
	scanf("%d", &arr[5]);
	int sz = sizeof arr / sizeof arr[0];
	for (i = 1;i <= 5;i++)
	{

		for (j = 1;j <= sz - 1;j++)
		{
			if (arr[j - 1] > arr[j])
			{
				int tmp = arr[j];
				arr[j] = arr[j - 1];
				arr[j - 1] = tmp;
			}
		}
	}
	for (int a = 0;a <6;a++)
	{
		printf("%d", arr[a]);
	}
	return 0;
}